package com.cjkj.applet;

import com.cjkj.common.security.annotation.EnableCustomConfig;
import com.cjkj.common.security.annotation.EnableMSFeignClients;
import feign.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@EnableCustomConfig
@EnableMSFeignClients
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class })
@ComponentScan({"com.cjkj.*"})
public class AppletApplication {
    public static void main(String[] args) {
        SpringApplication.run(AppletApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  小程序接口服务启动成功   ლ(´ڡ`ლ)ﾞ");
    }

    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }
}
